.class Lcom/opongo/android/custom/DealsActivity$1;
.super Landroid/content/BroadcastReceiver;
.source "DealsActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/opongo/android/custom/DealsActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/opongo/android/custom/DealsActivity;


# direct methods
.method constructor <init>(Lcom/opongo/android/custom/DealsActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/opongo/android/custom/DealsActivity$1;->this$0:Lcom/opongo/android/custom/DealsActivity;

    .line 49
    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 6
    .parameter "c"
    .parameter "i"

    .prologue
    .line 53
    invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v1

    .line 54
    .local v1, e:Landroid/os/Bundle;
    iget-object v3, p0, Lcom/opongo/android/custom/DealsActivity$1;->this$0:Lcom/opongo/android/custom/DealsActivity;

    const-string v4, "POST_ID"

    invoke-virtual {v1, v4}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I

    move-result v4

    #setter for: Lcom/opongo/android/custom/DealsActivity;->post_id:I
    invoke-static {v3, v4}, Lcom/opongo/android/custom/DealsActivity;->access$0(Lcom/opongo/android/custom/DealsActivity;I)V

    .line 55
    sget-boolean v3, Lcom/opongo/android/custom/DealsActivity;->DEBUG:Z

    if-eqz v3, :cond_0

    .line 56
    invoke-static {}, Lcom/opongo/android/custom/DealsActivity;->access$1()Ljava/lang/String;

    move-result-object v3

    .line 57
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "POST comment open by ID: "

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v5, p0, Lcom/opongo/android/custom/DealsActivity$1;->this$0:Lcom/opongo/android/custom/DealsActivity;

    #getter for: Lcom/opongo/android/custom/DealsActivity;->post_id:I
    invoke-static {v5}, Lcom/opongo/android/custom/DealsActivity;->access$2(Lcom/opongo/android/custom/DealsActivity;)I

    move-result v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 56
    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 60
    :cond_0
    :try_start_0
    invoke-static {}, Lcom/opongo/android/custom/DealsActivity;->access$3()Landroid/support/v4/view/PagerAdapter;

    move-result-object v0

    check-cast v0, Lcom/opongo/blogapp/adapter/ViewPagerAdapter;

    .line 61
    .local v0, adapter:Lcom/opongo/blogapp/adapter/ViewPagerAdapter;
    const/4 v3, 0x1

    const/4 v4, 0x0

    iget-object v5, p0, Lcom/opongo/android/custom/DealsActivity$1;->this$0:Lcom/opongo/android/custom/DealsActivity;

    #getter for: Lcom/opongo/android/custom/DealsActivity;->post_id:I
    invoke-static {v5}, Lcom/opongo/android/custom/DealsActivity;->access$2(Lcom/opongo/android/custom/DealsActivity;)I

    move-result v5

    invoke-virtual {v0, v3, v4, v5}, Lcom/opongo/blogapp/adapter/ViewPagerAdapter;->doRefresh(ZII)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 68
    .end local v0           #adapter:Lcom/opongo/blogapp/adapter/ViewPagerAdapter;
    :cond_1
    :goto_0
    return-void

    .line 62
    :catch_0
    move-exception v2

    .line 63
    .local v2, e2:Ljava/lang/Exception;
    sget-boolean v3, Lcom/opongo/android/custom/DealsActivity;->DEBUG:Z

    if-eqz v3, :cond_1

    .line 64
    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0
.end method
